﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DemoReception
{
    public class CHotelEvent
    {
        public delegate void RefreshRoomEvent(string aHotelCode);//定义委托
        public event RefreshRoomEvent iRefreshEvent;
        public void RefreshRoom(string aHotelCode)
        {
            iRefreshEvent?.Invoke(aHotelCode);
        }
    }

    public class CHotelDelegate
    {
        private static CHotelEvent iEventInstance = new CHotelEvent();

        public static CHotelEvent GetHotelEvent()
        {
            return iEventInstance;
        }
    }
}
